package org.jeecg.modules.minqing.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.app.bo.ProjectBo;
import org.jeecg.modules.app.vo.ProjectVo;
import org.jeecg.modules.minqing.entity.Project;
import org.jeecg.modules.minqing.entity.ResultProject;
import org.jeecg.modules.minqing.mapper.ProjectMapper;
import org.jeecg.modules.minqing.service.IProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 项目信息表
 * @Author: jeecg-boot
 * @Date: 2019-10-08
 * @Version: V1.0
 */
@Service
public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> implements IProjectService {

    @Autowired
    private ProjectMapper projectMapper;

    @Override
    public IPage<ResultProject> queryListProject(IPage<Project> page, Project project) {
        return projectMapper.queryListProject(page, project);
    }

    @Override
    public IPage<ResultProject> queryAppListProject(IPage<Project> page, Project project) {
        return projectMapper.queryAppListProject(page, project);
    }

    @Override
    public IPage<ProjectBo> queryProjectList(IPage<ProjectBo> page, ProjectVo project) {
        return projectMapper.queryProjectList(page, project);
    }

    @Override
    public List<String> queryLandType() {
        return baseMapper.queryLandType();
    }

    @Override
    public List<String> queryResourceType() {
        return baseMapper.queryResourceType();
    }
}
